﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace spel
{
    class ost
    {
        public Vector2 Position;
        private Texture2D texture;
        private SpriteBatch spriteBatch;
        private Game1 game;
        bool Alive = false;

        public Rectangle GetRectangle()
        {
            Rectangle r = new Rectangle((int)Position.X, (int)Position.Y, texture.Width, texture.Height);
            return r;
        }

        public void Draw(GameTime gameTime)
        {
            if (Alive = true)
            {

                spriteBatch.Begin();
                spriteBatch.Draw(texture, Position, Color.White);
                spriteBatch.End();
            }

        }

        public ost(Game1 game, Texture2D texture, SpriteBatch spriteBatch, Vector2 position)
        {
            Vector2 startpos = new Vector2(0, 0);
            this.spriteBatch = spriteBatch;
            this.texture = texture;
            this.game = game;
            this.Position = position;
        }
        

    }


}